package dsk.demo.product.entity.gupiao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("g_good_gupiao")
public class GGoodGupiao {

    @TableId
    private Long id;
    private String gCode;       //股票代码
    @TableField(exist = false)
    private String gCodePre;       //股票代码开头
    private String gName;       //股票名称
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;        //推荐日期
    private BigDecimal nowPrice;       //推荐时价格
    private BigDecimal newPrice3;       //3日线回测价格
    private BigDecimal newPrice5;       //5日线回测价格
    private BigDecimal newPrice8;       //8日线回测价格
    private String reason;      //推荐原因

}
